<table cellpadding="3" cellspacing="1" class="table table-bordered table-hover" id="list-table">
    <thead>
    <tr>
        <th style="text-align: center">医院</th>
        <th style="text-align: center">医生</th>
        <th style="text-align: center">产品编码</th>
        <th style="text-align: center">产品名称</th>
        <th style="text-align: center">价格类型</th>
        <th style="text-align: center">现价</th>
        <th style="text-align: center">原价</th>
        <th style="text-align: center">状态</th>
        <th style="text-align: center">操作</th>
    </tr>
    </thead>
<#if (goodsPriceList?size>0) >
    <#list  goodsPriceList as goodsPrice>
        <tbody>
        <tr>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (goodsPrice.entityName)??>
                    ${goodsPrice.entityName}
            </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (goodsPrice.stuffName)??>
                <a href="${basePath}/stuff/ajaxQueryStuffDetail.action?stuffID=${(goodsPrice.serialIdno)}">
                    ${goodsPrice.stuffName}
                </a>
            </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (goodsPrice.goodsIdno)??>
                    ${goodsPrice.goodsIdno}
            </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (goodsPrice.goodsName)??>
                    ${goodsPrice.goodsName}
            </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (goodsPrice.columnid)??>
                <#if (goodsPrice.columnid)==1>
                    用户付费
                <#else>
                    医生入账
                </#if>
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (goodsPrice.price)??>
                    ${goodsPrice.price?c}
            </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (goodsPrice.price00)??>
                    ${goodsPrice.price00?c}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (goodsPrice.isUsedFlag)??>
                    <#if (goodsPrice.isUsedFlag)==0>
                        未启用
                    <#else>
                        启用
                    </#if>
                <#else>
                    启用
                </#if>
            </td>
            <td align="center">
                <#if (goodsPrice.serialIdno)??>
                    <a href="${basePath}/goodsprice/requestEditStuffGoodsPriceList.action?stuffID=${(goodsPrice.serialIdno)}&priceID=${(goodsPrice.priceid)}">编辑</a>
                <#else >
                    <a href="${basePath}/goodsprice/requestEditStuffGoodsPriceList.action?priceID=${(goodsPrice.priceid)}">编辑</a>
                </#if>
            </td>
        </tr>
        </tbody>
    </#list>
</#if>
</table>

<#if page??>
<script type="text/javascript">
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>
<!-- 分页 -->
<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>条记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                <!--也许可以换种方式，呵呵，不用人工输入，用下拉列表-->
                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--查询动作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryUser.action"/>

                <span id="page-link">
						<a href="javascript:listTable.gotoPageFirst()">第一页</a>
						<a href="javascript:listTable.gotoPagePrev()">前一页</a>
						<a href="javascript:listTable.gotoPageNext()">下一页</a>
						<a href="javascript:listTable.gotoPageLast()">最后一页</a>

        </span>
            </div>
        </td>

    </tr>
</table>
</#if>